<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QMicrophone: QVolumeAnalyzer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<h1>QVolumeAnalyzer Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="QVolumeAnalyzer" -->
<p><a href="class_q_volume_analyzer-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e26c3e997477c9e0869e523a39e1759"></a><!-- doxytag: member="QVolumeAnalyzer::thresholdExceeded" ref="a1e26c3e997477c9e0869e523a39e1759" args="(int)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>thresholdExceeded</b> (int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a642a2096988cccd2cc0ab9a605a8dee7"></a><!-- doxytag: member="QVolumeAnalyzer::clap" ref="a642a2096988cccd2cc0ab9a605a8dee7" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>clap</b> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a530d280edb3387aeea4f679a197f265a"></a><!-- doxytag: member="QVolumeAnalyzer::QVolumeAnalyzer" ref="a530d280edb3387aeea4f679a197f265a" args="(const QAudioFormat &amp;format, QObject *parent=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>QVolumeAnalyzer</b> (const QAudioFormat &amp;format, QObject *parent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">qint64&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_volume_analyzer.html#ae3fdd7226ba82d83362322ff46f4b5a8">readData</a> (char *data, qint64 maxlen)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">qint64&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_volume_analyzer.html#affa85ecc09466558eb41dd73a69097b4">writeData</a> (const char *data, qint64 maxlen)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_volume_analyzer.html#adba468b16550686abee8a50cf7000078">start</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_volume_analyzer.html#a29055447360106b59770e77116bcf2ea">stop</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f42ff470343604aac517e33acfe0a20"></a><!-- doxytag: member="QVolumeAnalyzer::threshold" ref="a1f42ff470343604aac517e33acfe0a20" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>threshold</b></td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae3fdd7226ba82d83362322ff46f4b5a8"></a><!-- doxytag: member="QVolumeAnalyzer::readData" ref="ae3fdd7226ba82d83362322ff46f4b5a8" args="(char *data, qint64 maxlen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">qint64 QVolumeAnalyzer::readData </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">qint64&nbsp;</td>
          <td class="paramname"> <em>maxlen</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Empty implementation for readData, since no data is provided by the VoiceAnalyzer class. </p>

</div>
</div>
<a class="anchor" id="adba468b16550686abee8a50cf7000078"></a><!-- doxytag: member="QVolumeAnalyzer::start" ref="adba468b16550686abee8a50cf7000078" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QVolumeAnalyzer::start </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Opens the parent QIODevice. Sets up the analysation parameters. </p>

</div>
</div>
<a class="anchor" id="a29055447360106b59770e77116bcf2ea"></a><!-- doxytag: member="QVolumeAnalyzer::stop" ref="a29055447360106b59770e77116bcf2ea" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QVolumeAnalyzer::stop </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Closes the parent QIODevice, thus the voice is not analysed anymore. Resets the m_samples QList. </p>

</div>
</div>
<a class="anchor" id="affa85ecc09466558eb41dd73a69097b4"></a><!-- doxytag: member="QVolumeAnalyzer::writeData" ref="affa85ecc09466558eb41dd73a69097b4" args="(const char *data, qint64 maxlen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">qint64 QVolumeAnalyzer::writeData </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">qint64&nbsp;</td>
          <td class="paramname"> <em>maxlen</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when data is obtained. Stores each m_stepSize sample into a QList to be analysed. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="qvolumeanalyzer_8h_source.html">qvolumeanalyzer.h</a></li>
<li>qvolumeanalyzer.cpp</li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated on Wed Apr 11 2012 15:12:17 for QMicrophone by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
